package com.ft.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.ft.domain.Buyorder;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author com/ft
 * @since 2022-08-24
 */
public interface IBuyorderService extends IService<Buyorder> {
    /**
     * 创建帮我买订单
     * @param order 帮我买订单对象
     * @return 受影响的行数
     */
    public int createBuyOrder(Buyorder order) throws JsonProcessingException;

    /**
     * 根据订单id查询所有订单信息
     * @param id 订单id
     * @return 订单对象
     */
    public Buyorder selectBuyOrder(Long id);
    /**
     * 查询指定字段的数据用于微信支付
     * @param id 订单id
     * @return 订单对象
     */
    public Buyorder selectBuyOrderToPay(Long id);
}
